package test.myorm.core;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

public class Parameter extends BaseMapping {
	public static final int NAME = 1;
	public static final int QUESMARK = 2;
	
	private Class clazz;//参数类型
	private int size;//参数个数
	private int type;// 1：name传参  2：问号传参
	private List<String> keyList = new ArrayList<>();
	private List<Object> paramList = new ArrayList<>();
	private Object[] orgParam;
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
	public void addParam(Object obj) {
		this.paramList.add(obj);
	}
	public List<Object> getParamList() {
		return paramList;
	}
	public void setParamList(List<Object> paramList) {
		this.paramList = paramList;
	}
	public Class getClazz() {
		return clazz;
	}
	public void setClazz(Class clazz) {
		this.clazz = clazz;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public List<String> getKeyList() {
		return keyList;
	}
	public void setKeyList(List<String> keyList) {
		this.keyList = keyList;
	}
	public void addKey(String key) {
		this.keyList.add(key);
	}
	public Object[] getOrgParam() {
		return orgParam;
	}
	public void setOrgParam(Object[] orgParam) {
		this.orgParam = orgParam;
	}
	@Override
	public String toString() {
		return "Parameter [clazz=" + clazz + ", size=" + size + ", type=" + type + ", keyList=" + keyList
				+ ", paramList=" + paramList + "]";
	}

}
